<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %><%--jstl을 쓰기 위해 사용 --%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %><%--숫자 포맷을 사용하기 위해 사용 --%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions"  prefix="fn"%><%--함수들을 이용하기 위해 사용 --%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<link rel='stylesheet' href='calendar/calendar_ahmax.css' type='text/css' />
<script src="calendar/jquery.mousewheel.min.js"></script>
<script src="calendar/calendar_ahmax.js"></script>
<!--<script type="text/javascript" src="script/project.js"></script>-->
<script type="text/javascript">
//달력 사용
initCal("pro_sday","Y");
</script>
</head>
<body onload="changeProLday();">
<div class="box">
	<h4 class="white">프로젝트관리</h4>
	 <div class="box-container2">
		 <form action="projectAction.do" method="post" name="mplist">
	 		<c:choose>
				<c:when test="${requestScope.update=='Y' }">
					 <input type="hidden" name="mode" value="mplist_update"></input>
					 <input type="hidden" name="pro_id" id="pro_id"value="${requestScope.vo.pro_id }"></input>
					 <input type='hidden'name='pro_loginID' id='pro_loginID'  value='${requestScope.vo.pro_loginID}'></input>
				</c:when>
				<c:otherwise>
				    <input type="hidden" name="mode" value="mplist_insert"></input>
					 <input type="hidden" name="pro_id" id="pro_id"value="${requestScope.maxNo }"></input>
					 <input type='hidden' name='pro_loginID' id='pro_loginID'  value='${sessionScope.USER_ID}'></input>
				</c:otherwise>
			</c:choose>	
			
			
		 	<table class="insertTableL">
	   			<tfoot>
	   				<tr>
	   					<td>
	                     	<div class="align-right"><a href="#" class="button" onclick="javascript:pjWrite('${requestScope.update}'); return false;"><span>저장</span></a>
	                     	<a href="#" class="button" onclick="javascript: canclePjWrite('mplist')"><span>닫기</span></a></div>
	                     </td>
	   				</tr>
	   			</tfoot>
	   		</table>
	   		<table class="insertTableL">
	   			<colgroup>
	   				<col width="110px"/>
	   				<col width=""/>
	   				<col width="110px"/>
	   				<col width=""/>
	   			</colgroup>
	   			<tbody>
	   				<tr>
	   					<td class="titleName">착 수 일 <span class="red">＊</span></td>
	   					<td> 
	   						<input type='text' name='pro_sday' id='pro_sday'  value='${requestScope.vo.pro_sday}' style='IME-MODE: disabled; width: 87%' maxlength='10' onkeydown='evKeyAndDot(event);'  onkeyup='inputCheckSpecial(this); setComma(this,event);' onblur="isDateProSday(this)" ></input>
	   						<img id="pro_sdayCal_calIcon" src="images/calendar.gif" style="vertical-align: text-bottom; cursor: pointer;"></img>
	   					</td>
	   					<td class="titleName">RMP 버전 <span class="red">＊</span></td>
	   					<td>
	   						<input type="text" class="width97" name="pro_pindex" id="pro_pindex" value='${requestScope.vo.pro_pindex}' maxlength='4' style='IME-MODE: disabled; width: 97%'  onkeydown='evKey(event);'  onkeyup='inputCheckSpecial(this);'></input>
	   					</td>
	   				</tr>
	   				<tr>
	   					<td class="titleName">담 당 자 <span class="red">＊</span></td>
	   					<td colspan="3">
	   						<input type='text' class="width99" name='pro_people' id='pro_people'  value='${requestScope.vo.pro_people}' maxlength='20' ></input>
	   					</td>
	   				</tr>
	   				<tr>
	   					<td class="titleName">등 록 자</td>
	   					<td colspan="3">
	   						<c:choose>
	   							<c:when test="${requestScope.update=='Y' }">
	   								${requestScope.vo.pro_loginID}
	   							</c:when>
	   							<c:otherwise>
	   								${sessionScope.USER_ID}
	   							</c:otherwise>
	   						</c:choose>
	   					</td>
	   				</tr>
	   				<tr>
	   					<td class="titleName" >프로젝트 명 <span class="red">＊</span></td>
	   					<td colspan="3">
	   						<input type='text' class="width99" name='pro_nm' id='pro_nm'  value='${requestScope.vo.pro_nm}' maxlength='30'></input>
	   					</td>
	   				</tr> 
	   				<tr>
	   					<td class="titleName">상 태</td>
	   					<td>
	   						<select name="pro_state" id="pro_state" class="selectBox" onchange="javascript: changeProLday()" style="width: 100px">
								<option <c:if test="${vo.pro_state=='N' || vo.pro_state==null || vo.pro_state==''}">selected</c:if> value="N">진행중</option>
								<c:if test="${requestScope.update=='Y'}">
								<option <c:if test="${vo.pro_state=='Y' }">selected</c:if> value="Y">완료</option>
								</c:if>
							</select>
	   					</td>
	   					<td class="titleName">완 료 일</td>
	   					<td>
	   						<input type='text' name='pro_lday' id='pro_lday'  value='${requestScope.vo.pro_lday}' maxlength='10' style='IME-MODE: disabled; width: 87%' onkeydown='evKeyAndDot(event);'  onkeyup="inputCheckSpecial(this); setComma(this,event);" readonly="readonly"></input>
	   						<span id="proLdayCal" style="display: none; vertical-align: text-bottom;"><img id="pro_ldayCal_calIcon" src="images/calendar.gif" style="vertical-align: text-bottom; cursor: pointer;" ></img></span>
	   					</td>
	   				</tr>
	   			</tbody>
	   		</table>
   		</form>
	</div>
</div>
</body>
</html>